//
//  SettingColorCell.swift
//  XingCeHelper
//
//  Created by 申铭 on 2022/12/27.
//

import UIKit

let kSettingColorCell: String = "SettingColorCell"

class SettingColorCell: RoundCornerCell {
    
    @IBOutlet weak var titleLabel: UILabel!
    @IBOutlet weak var colorView: UIView!
    
    var model: SettingColorCellModel? {
        didSet {
            titleLabel.text = model?.title
            colorView.backgroundColor = model?.color
        }
    }

    override func awakeFromNib() {
        super.awakeFromNib()
        
        colorView.setFillet(cornerRadius: colorView.frame.height / 2)
    }
    
}
